<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>正则</title>
</head>
<body>
    
    <script>
        // const str = '<div style="" class=""><span></span></div>'
        // const reg = /<.+>/
        // const reg2 = /<.+?>/
        // console.log(reg.exec(str))
        // console.log(reg2.exec(str))

        // const reg = /^abcd{2}$/
        // console.log(reg.test('abcdabcd'))
        // console.log(reg.test('abcdd'))
    </script>
</body>
</html>